package TeamNPE;

import battlecode.common.Direction;
import battlecode.common.GameActionException;
import battlecode.common.RobotController;

public class BOTHeadquarters implements BOT 
{
	public void RunBot(RobotController rc) throws GameActionException
	{
		if (rc.isActive()) 
		{
			// Spawn a soldier
			Direction dir = rc.getLocation().directionTo(rc.senseEnemyHQLocation());
			if (rc.canMove(dir))
				rc.spawn(dir);
		}
	}
}
